import torch
from scipy.linalg import hadamard
d = 64
ha_d = hadamard(d)

num_class = 3
hash_targets = torch.from_numpy(ha_d[0:num_class]).float()
print(hash_targets.shape)

f = open('./64_isic_3_class.pkl','wb')
torch.save(hash_targets, f)